using System;

namespace Dino
{
    public partial class UnitOfWork
    {
        /// <summary>
        /// Fluently configures the UnitOfWork
        /// </summary>
        /// <returns></returns>
        public static Configuration Configure()
        {
            return new Configuration();
        }

        /// <summary>
        /// Fluently configures the UnitOfWork with configuration actions
        /// </summary>
        /// <returns></returns>
        public static Configuration Configure(Action<Configuration> withContexts)
        {
            var configuration = new Configuration();
            withContexts.Invoke(configuration);
            return configuration;
        }  
    }
}